<%@page import="entityBean.Investisseur"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Listes des investisseurs</title>
<link rel="stylesheet" type="text/css"
	href="/Web-JEE/css/style_table.css" />

</head>
<body>

	<jsp:include page="../jsp/header.jsp" flush="true" />
	<table width="100%" cellpadding="10" cellspacing="10"
		bordercolor="#CC9900" bgcolor="#FFFFFF">
		<tr>
			<th scope="row"><table width="100%" border="1" cellpadding="10"
					cellspacing="10">
					<tr>
						<td colspan="2" class="txt-ttespace"><b><h1>Afficher
									Investisseurs</h1> </b>
						</td>

					</tr>
					<tr>
						<td>

							<div style="overflow: auto; height: 300px;">


								<%!List<Investisseur> invs;%>
								<%
									invs = (List<Investisseur>) request.getAttribute("invs");
								%>
								<table id="gradient-style" align="center" border="1"
									cellpadding="5" cellspacing="5" bordercolor="#CC9900"
									bgcolor="#FFFFFF">
									<thead style="border: 1px;">
										<tr>
											<th scope="col" align="center"><b>Id</b>
											</th>
											<th scope="col" align="center"><b>Nom</b>
											</th>
											<th scope="col" align="center"><b>Email</b>
											</th>
											<th scope="col" align="center"><b>Login</b>
											</th>
											<th scope="col" align="center"><b>Password</b>
											</th>
											<th scope="col" align="center"><b>Capital (euros)</b>
											</th>
											<th scope="col" align="center"><b>Type Investisseur</b>
											</th>
										</tr>
									</thead>
									<tbody>
										<%
											if (invs != null) {
												for (Investisseur inv : invs) {
										%>
										<tr>
											<td><%=inv.getIdInvestisseur()%></td>
											<td><%=inv.getNom()%></td>
											<td><%=inv.getEmail()%></td>
											<td><%=inv.getLogin()%></td>
											<td><%=inv.getPassWord()%></td>
											<td><%=inv.getCapital()%></td>
											<td><%=inv.getType_inv()%></td>
										</tr>
										<%
											}
											}
										%>

									</tbody>
								</table>
						</td>
						</div>
					</tr>
				</table>
</body>
</html>